﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace fes
{
  public class Indicator: FuzzyValue  {
    private Dictionary<String, Object> p;

    public Dictionary<String, Object> P
    {
      get { return p; }
      set { p = value; }
    }
    //public static enum Type {ROC, CCI ,RSI};

    public Indicator(String name): base(name)
    {

    }

    public void setInidicatorParams(Dictionary<String, Object> par)
    {
      p = par;
    }

    public Dictionary<String, Object> getIndicatorParams()
    {
      return p;
    }

    public virtual void pushNextDayData(double open, double high, double low, double close, int vol) { return; }
    public virtual double getValue() { return 0.0; }
    public virtual Indicator Clone() { return new Indicator(""); }
  }

  interface IIndicator
  {
    void pushNextDayData(double open, double high, double low, double close, int vol);
    double getValue();
  }
}
